<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form id="form">
    <table>
        <tr>
            <td>角色名称</td>
            <td><input id="roleName" name="roleName" value=""/></td>
        </tr>
        <tr>
            <td>备注</td>
            <td><input id="note" name="note"/></td>
        </tr>
        <tr>
            <td></td>
            <td align="right"><input id="commit" type="button" value="提交"/></td>
        </tr>
    </table>
</form>
</body>
</html>
<script type="text/javascript" src="js/jquery-3.1.1.min.js"></script>
<script>
    $(function () {
        $("#commit").click(function () {
            var str = $("#form").serialize();
            //提交表单
            $.post({
                url: 'params/commonParamPojo2.do',
                //将form数据序列化，传给后台。以roleName=xxx&note=xxx传递
                data: $("#form").serialize(),
                success: function (result) {
                    console.log(result);
                }
            });
        });
    });
</script>